package com.tjetc.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
/*
*订单详情
*/
@Data
public class OrderDetail {
    //订单详情id
    private Integer id;
    //菜的id
    private Integer dishId;
    //数量
    private Integer number;
    //该菜品单价*数量
    private BigDecimal amount;
    //订单id
    private Integer orderId;
    //单价
    private BigDecimal price;
    //菜品图片
    private String image;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
